<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<div style="text-align: center;margin:0 auto;width: 1000px; ">
    <a href="/"><img src="../static/image/spring-boot.png" th:width="350" th:height="160"/></a>
    <h4><a href="/emps">
        <button>返回员工管理</button>
    </a></h4>
</div>
<div style="text-align: center; margin:0 auto; width: 500px; ">
    <p style="text-align: left">更改用户👇</p>
    <table width="100%" border="1" cellspacing="1" cellpadding="0">
        <form method="post" action="/updateUser">
            <input id="id"  type="hidden" name="id" th:value="${user.id}">
            <tr>
                <td><strong>姓名</strong></td>
                <td height="30px"><input id="name" name="name"  th:value="${user.name}"></td>
            </tr>
            <tr>
                <td><strong>年龄</strong></td>
                <td height="30px"><input id="age" name="age" th:value="${user.age}"></td>
            </tr>
            <tr>
                <td><strong>性别</strong></td>
                <td height="30px"><input id="avatar" name="avatar"  th:value="${user.avatar}"></td>
            </tr>
            <tr>
                <td><strong>操作</strong></td>
                <td height="36px">
                    <button type="submit">更改</button>
                </td>
            </tr>
        </form>
    </table>
</div>

</body>
</html>